var stat = {};

stat.initStep = function() {
	console.log("dfdf");
	$(".ystep4").loadStep({
	      size: "large",
	      color: "blue",
	      steps: [{
	        title: "提交任务",
	        content: "2016-04-12"
	      },{
	        title: "待响应",
	        content: "2016-04-14"
	      },{
	        title: "待支付",
	        content: "2016-04-16"
	      },{
	        title: "任务进行",
	        content: "2016-04-18"
	      },{
	        title: "待确认",
	        content: "2016-04-20"
	      },{
		    title: "完成",
		    content: "2016-04-22"
		  }]
	 });
	$(".ystep4").setStep(4);
}

stat.getHeight = function() {
	var height = $(document).height();
    window.parent.index.iframeResize(height);
}

stat.init = function() {
	stat.getHeight();
	stat.initStep();
}

$(document).ready(function() {
	stat.init();
});